<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var f = fso.GetFolder("../data");
    var fc = new Enumerator(f.files);
    var s = "";
    //以下内容是显示文件名
    for (; !fc.atEnd(); fc.moveNext())
    {
        document.write(fc.item()+"<br>");
        ;
    }
</script>
</body>
</html>